<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script
	src="${pageContext.request.contextPath}/resources/js/jquery-1.9.1.min.js"></script>
<script
	src="${pageContext.request.contextPath}/resources/js/bootstrap.min.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/resources/js/housekeeper/housekeeper_select.js"></script>
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/resources/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/resources/css/main_font.css" />
<title>四川芝麻开门管理系统</title>
</head>
<body>
	<div class="container">
		<c:set var="housekeeper" scope="session" value="${housekeeper}" />
		<c:if test="${housekeeper==null}">
			<span><a
				href="${pageContext.request.contextPath}/pagejump/toLogin">您未登陆哦，请登陆！</a></span>
		</c:if>
		<c:if test="${housekeeper!=null}">
			<span>${sessionScope.housekeeper.name},欢迎您！<a
				href="${pageContext.request.contextPath}/pagejump/toLogin">退出登陆</a></span>
		</c:if>
	</div>
	<div class="container">
		<span><a
			href="${pageContext.request.contextPath}/pagejump/toIndex">主页</a>><a
			href="${pageContext.request.contextPath}/admin/housekeeper">管家信息管理</a>><a
			href="${pageContext.request.contextPath}/admin/housekeeper_select">信息查询</a>>管家信息修改</span>
	</div>
	<div class="container">
		<div id="Return">
			<c:set var="response" scope="request" value="${serverResponse}" />
			<c:if test="${response.status==1}">
				<font color='red'>${response.msg}</font>
			</c:if>
		</div>
		<form
			action="${pageContext.request.contextPath}/housekeeper_manage/update_housekeeper_submit"
			id="selectForm">
				<div class="form-group">
					<label for="userName">id</label> <input type="text"
						class="form-control" id="userId" placeholder="userId"
						name="userId" value="${userSelect.id}" readonly="readonly">
				</div>
				<div class="form-group" id="userNameDiv">
					<label for="userName">账号</label> <input type="text"
						class="form-control" id="userName" placeholder="userName"
						name="userName" value="${userSelect.userName}" autocomplete="off">
				</div>
				<div class="form-group" id="passWordDiv">
					<label for="passWord">密码</label> <input type="text"
						class="form-control" id="passWord" placeholder="passWord"
						name="passWord" value="${userSelect.passWord}" autocomplete="off">
				</div>
				<div class="form-group" id="phoneDiv">
					<label for="phone">手机</label> <input type="text" autocomplete="off"
						class="form-control" value="${userSelect.phone}" id="phone" placeholder="phone" name="phone">
				</div>
				<div class="form-group" id="housekeeper_addressDiv">
					<label for="housekeeper_address">办公地址(服务点)</label> <input
						type="text" class="form-control" id="housekeeper_address" value="${userSelect.housekeeper_address}"
						placeholder="address" name="housekeeper_address" autocomplete="off">
				</div>
				<div class="form-group" id="nameDiv">
					<label for="name">姓名</label> <input type="text" autocomplete="off"
						class="form-control" value="${userSelect.name}" id="name" placeholder="name" name="name">
				</div>
				<div class="form-group" id="identity_cardDiv">
					<label for="identity_card">身份证</label> <input type="text"
						class="form-control" id="identity_card" autocomplete="off"
						placeholder="identity_card" value="${userSelect.identity_card}" name="identity_card">
				</div>
				<div class="form-group" id="identity_addressDiv">
					<label for="identity_address">身份证地址</label> <input type="text"
						class="form-control" id="identity_address" autocomplete="off"
						placeholder="identity_address" value="${userSelect.identity_address}" name="identity_address">
				</div>
				<div class="form-group" id="user_gradeDiv">
					<label for="user_grade">级别</label> <input type="text"
						class="form-control" id="user_grade" placeholder="user_grade"
						name="user_grade" value="${userSelect.user_grade}" autocomplete="off">
				</div>
				<div>
					<button type="button" class="btn btn-success"
						onclick="updateHousekeeper()">修改提交</button>
				</div>
		</form>
	</div>
</body>
</html>